<?php

namespace App\Models\Headquarters;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class NariData extends Model
{
    use HasFactory;
    protected $table = 'nari_yongqiang1';
    protected $fillable = ['address', 'value', 'quality'];

    public function findById($id){
        return self::find($id);
    }

    public function insertOne($params){
        return self::create($params);
    }

    public function insertMany($params){
        return self::insert($params);
    }

}
